<?php 
namespace app\model;
use think\Model;

class Activity extends Model
{	
    public static function getStatusCn($key){
        $list = [1=>'显示',0=>'隐藏'];
        return $list[$key];
    }

    public static function getStatusList(){
        $list = [1=>'显示',0=>'隐藏'];
        return $list;
    }


    public static function getTypeCn($key){
        $list = ['热门'];
        return $list[$key];
    }

    public static function getTypeList(){
        $list = ['热门'];
        return $list;
    }

    public static function getAttributeCn($key){
        $list = [1=>'热门'];
        $name = [];
        $keys = explode(',', $key);
        foreach ($keys as $vo) {
            if (!empty($vo)) {
                $name[] = $list[$vo];
            }
        }
        
        return implode(',',$name);
    }

    public static function getAttributeList(){
        $list = [1=>'热门'];
        return $list;
    }
	
}


 ?>